//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['Nache Mayuri','Copernicus Center','Chicago, IL','Sunday','5/12/2024','2:00 PM','6385735','Nache-Mayuri-5-12-2024'],['Valery Meladze and Band','Copernicus Center','Chicago, IL','Tuesday','5/14/2024','8:00 PM','5826065','Valery-Meladze-and-Band-5-14-2024'],['Zucchero','Copernicus Center','Chicago, IL','Thursday','5/16/2024','8:00 PM','6217517','Zucchero-5-16-2024'],['Umrao Jaan Ada - Musical Play','Copernicus Center','Chicago, IL','Saturday','5/18/2024','7:30 PM','6348057','Umrao-Jaan-Ada---Musical-Play-5-18-2024'],['Umrao Jaan Ada - Musical Play','Copernicus Center','Chicago, IL','Sunday','5/19/2024','1:00 PM','6368698','Umrao-Jaan-Ada---Musical-Play-5-19-2024'],['Junoon','Copernicus Center','Chicago, IL','Saturday','5/25/2024','7:00 PM','6368672','Junoon-5-25-2024'],['Jon Anderson & The Band Geeks','Copernicus Center','Chicago, IL','Thursday','6/13/2024','7:30 PM','6317063','Jon-Anderson---The-Band-Geeks-6-13-2024'],['Open Thoughts vs. Really Good Podcast Tour: Funny Marco & Bobbi Althoff','Copernicus Center','Chicago, IL','Saturday','7/13/2024','7:30 PM','6360853','Open-Thoughts-vs--Really-Good-Podcast-Tour--Funny-Marco---Bobbi-Althoff-7-13-2024'],['Daz Games Live','Copernicus Center','Chicago, IL','Saturday','7/20/2024','8:00 PM','6236364','Daz-Games-Live-7-20-2024'],['Proyecto Uno','Copernicus Center','Chicago, IL','Friday','8/16/2024','7:00 PM','6385733','Proyecto-Uno-8-16-2024'],['Ballet Folklorico de Chicago','Copernicus Center','Chicago, IL','Sunday','9/15/2024','4:00 PM','6385730','Ballet-Folklorico-de-Chicago-9-15-2024'],['Robin Trower','Copernicus Center','Chicago, IL','Sunday','9/22/2024','7:30 PM','6385731','Robin-Trower-9-22-2024'],['Dr. Cesar Lozano','Copernicus Center','Chicago, IL','Wednesday','10/23/2024','7:00 PM','6385732','Dr--Cesar-Lozano-10-23-2024'],['BEAT - Belew/Vai/Levin/Carey Play 80s King Crimson','Copernicus Center','Chicago, IL','Friday','11/1/2024','8:00 PM','6357119','BEAT---Belew-Vai-Levin-Carey-Play-80s-King-Crimson-11-1-2024'],['Maxim Galkin','Copernicus Center','Chicago, IL','Sunday','11/3/2024','8:00 PM','6380059','Maxim-Galkin-11-3-2024'],['Mauricio Ochmann','Copernicus Center','Chicago, IL','Saturday','9/10/2072','8:00 PM','5177742','Mauricio-Ochmann-9-10-2072'],['Fire of Anatollia','Copernicus Center','Chicago, IL','Friday','11/3/2073','8:00 PM','5762718','Fire-of-Anatollia-11-3-2073']],'Copernicus Center','http://www.ticketnetwork.com/ticket/Copernicus-Center-events.aspx');